package com.ty.controller;

import com.ty.pojo.PartnerFetters;
import com.ty.service.PartnerFettersService;
import com.ty.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.w3c.dom.stylesheets.LinkStyle;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.util.List;

@RestController
@RequestMapping("/paernerFetters")
@CrossOrigin
@EnableSwagger2
public class PartnerFettersController {
    @Autowired
    private PartnerFettersService partnerFettersService;
    //查询伙伴表中的羁绊
    @GetMapping("/getpaernerFettersList/{id}")
    public SysResult getpaernerFettersList(@PathVariable Integer id){
        List<PartnerFetters> partnerFettersList = partnerFettersService.getpaernerFettersList(id);
        return SysResult.success(partnerFettersList);
    }
}
